import request from 'plugin/axios'

export function getAlipayShopList(params:any):Promise<any>{
    return request({
        url:'v1/seller/alipay/list',
        params,
        method:'get'
    })
}

export function setAlipayShop(data:any):Promise<any>{
    return request({
        url:'v1/seller/alipay/set',
        data,
        method:'post'
    })
}

export function getAlipayDetail(params:any):Promise<any>{
    return request({
        url:'v1/seller/alipay/get',
        params,
        method:'get'
    })
}

export function toggleAlipayStatus(data:any):Promise<any>{
    return request({
        url:'v1/seller/alipay/status/toggle',
        data,
        method:'post'
    })
}


export function getBankShopList(params:any):Promise<any>{
    return request({
        url:'v1/seller/union_pay/list',
        params,
        method:'get'
    })
}

export function setBankShop(data:any):Promise<any>{
    return request({
        url:'v1/seller/union_pay/set',
        data,
        method:'post'
    })
}

export function getBankDetail(params:any):Promise<any>{
    return request({
        url:'v1/seller/union_pay/get',
        params,
        method:'get'
    })
}

export function toggleBankStatus(data:any):Promise<any>{
    return request({
        url:'v1/seller/alipay/status/toggle',
        data,
        method:'post'
    })
}


export function getServiceArea():Promise<any>{
    return request({
        url:'v1/agent/region/get',
        method:'get'
    })
}